package com.bwton.msx.ccb.service.user;

/**
 * 用户描述信息
 */
public class User {
    public String name; //姓名

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public String phone;//手机号

    public String id;//身份证号
    public String card;//卡号
    public String token;//token
    public String userId;//用户id
    public String unionId;//联合id
    public State state = new State();
    public static class State{
        boolean enableFace = false;//是否开通人脸 face_state == 0未开通其余状态 则是开通状态
        boolean enableRealName = false;//是否实名
        String faceState = "0";//人脸状态 0 未开通 1开通 2冻结
        boolean enableSign = false;//是否签约

        public String getFaceState() {
            return faceState;
        }

        public void setFaceState(String faceState) {
            this.faceState = faceState;
        }

        boolean enableCode;//是否开通乘车码
        public boolean isEnableFace() {
            return enableFace;
        }

        public void setEnableFace(boolean enableFace) {
            this.enableFace = enableFace;
        }

        public boolean isEnableRealName() {
            return enableRealName;
        }

        public void setEnableRealName(boolean enableRealName) {
            this.enableRealName = enableRealName;
        }

        public boolean isEnableSign() {
            return enableSign;
        }

        public void setEnableSign(boolean enableSign) {
            this.enableSign = enableSign;
        }

        public boolean isEnableCode() {
            return enableCode;
        }

        public void setEnableCode(boolean enableCode) {
            this.enableCode = enableCode;
        }

        @Override
        public String toString() {
            return "State{" +
                    "enableFace=" + enableFace +
                    ", enableRealName=" + enableRealName +
                    ", faceState='" + faceState + '\'' +
                    ", enableSign=" + enableSign +
                    ", enableCode=" + enableCode +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", id='" + id + '\'' +
                ", card='" + card + '\'' +
                ", token='" + token + '\'' +
                ", userId='" + userId + '\'' +
                ", unionId='" + unionId + '\'' +
                ", state=" + state +
                '}';
    }
}
